package org.eweb4j.config;

import org.eweb4j.util.StringUtil;

public class ConfigLogger implements Logger{
	
	private boolean isDebug = true;
	private String level;

	public ConfigLogger(boolean isDebug, String level){
		//this.isDebug = isDebug;
		this.level = level;
	}
	
	public void write(String info) {
		StringBuilder sb = new StringBuilder();
		sb.append(StringUtil.getNowTime());
		sb.append(" -CONFIG -");
		sb.append(this.level);
		sb.append(" : ");
		sb.append(info);
		if (this.isDebug)
			System.out.println(sb.toString());
	}

}
